﻿@using Step4.Unit9.Models
@model LoginViewModel
@{
    ViewData["Title"] = "Login";
    Layout = "_Layout";
}

<h5>请您登录或者<a asp-action="Register">注册</a></h5>
<h1>登录</h1>
<form asp-action="SubmitLogin" method="post">
    <div asp-validation-summary="ModelOnly" style="color:red;"></div>
    <input asp-for="RedirectUrl" type="hidden" />
    <div>
        <label asp-for="UserName"></label>
        <input asp-for="UserName" />
        <span asp-validation-for="UserName"></span>
    </div>
    <div>
        <label asp-for="Pwd"></label>
        <input asp-for="Pwd" />
        <span asp-validation-for="Pwd"></span>
    </div>
    <div>
        <input type="submit" class="btn btn-primary" value="登录"/>
    </div>
</form>

@section Scripts
{
    <partial name="_ValidationScriptsPartial" />
}